package com.hbt.active_mq.my_active_mq;

import org.apache.activemq.command.ActiveMQQueue;
import org.apache.activemq.command.ActiveMQTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jms.annotation.EnableJms;

import javax.jms.Queue;
import javax.jms.Topic;


@Configuration
public class Config {
    @Bean
    public Queue queue(){
        return new ActiveMQQueue("mq1");
    }
    @Bean
    public Topic topic(){
        return new ActiveMQTopic("topic1");
    }
}
